<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
			  do {
				 循环体; 
			  } while(条件表达式);
			
			*/

			//求出1-100之间所有数的和

			//1+2+3+4+5...
			var x = 0;
			var sum = 0;
			do {
				x++;
				sum = sum + x;
			} while (x < 100);
			console.log("1-100之间所有数的和:" + sum);
		</script>
	</head>
	<body>
	</body>
</html>
